import { ApiProperty } from '@nestjs/swagger';
import SysMenu from '@main/entities/service/admin/sys/sys-menu.entity';

export class LoginToken {
  @ApiProperty({ description: 'JWT身份Token' })
  token: string;
}

export class PermMenuInfo {
  @ApiProperty({ description: '菜单列表', type: [SysMenu] })
  menus: SysMenu[];

  @ApiProperty({ description: '权限列表', type: [String] })
  perms: string[];
}
